import { Popover } from "antd";
import React from "react";
import { messages } from "share/common";

const columnsCommon = {
  width: 100,
  render: text => <span className='need-limit-100'>{text !== undefined && text !== null ? <Popover placement="topLeft" content={text}>{text}</Popover> : '-'}</span>
};

const columnsCommonFilterMoney = {
  width: 100,
  render: text => {
    text = React.Component.prototype.filterMoney(text);
    return <span className='need-limit-100'>{text !== undefined && text !== null ? <Popover placement="topLeft" content={text}>{text}</Popover> : '-'}</span>
  }
};

// 有行合并的列，用该Columns
const mergeColumnsCommon = {
  width: 100,
  render: (text, row) => {
    const obj = {
      children: <span>{text !== undefined && text !== null ? <Popover placement="topLeft" content={text}>{text}</Popover> : '-'}</span>,
      props: {}
    };
    if (row.childLineNum > 1) {
      obj.props.rowSpan = row.childLineNum;
    }
    if (!row.childLineNum) {
      obj.props.rowSpan = 0;
    }
    return obj;
  }
};

// 有行合并的列，用该Columns
const mergeColumnsCommonFilterMoney = {
  width: 100,
  render: (text, row) => {
    text = React.Component.prototype.filterMoney(text);
    const obj = {
      children: <span>{text !== undefined && text !== null ? <Popover placement="topLeft" content={text}>{text}</Popover> : '-'}</span>,
      props: {}
    };
    if (row.childLineNum > 1) {
      obj.props.rowSpan = row.childLineNum;
    }
    if (!row.childLineNum) {
      obj.props.rowSpan = 0;
    }
    return obj;
  }
};
// 通用报表的columns是根据后端返回的列去自动生成的
// 不明白图形报表为什么要枚举出来
export const LOAN_DETAIL_COLUMNS = [
  {
    title: messages('finance-7.key44')/*收款方类型*/,
    key: "payeeTypeDesc",
    dataIndex: 'payeeTypeDesc',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key45')/*工号/编码*/,
    key: "payeeCode",
    dataIndex: 'payeeCode',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key46')/*收款方名称*/,
    key: "payeeName",
    dataIndex: 'payeeName',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key47')/*借款类型*/,
    key: "loanTypeName",
    dataIndex: 'loanTypeName',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key48')/*借款日期*/,
    key: "loanDate",
    dataIndex: 'loanDate',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key49')/*借款公司*/,
    key: "companyName",
    dataIndex: 'companyName',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key50')/*借款部门*/,
    key: "departmentName",
    dataIndex: 'departmentName',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key51')/*本币借款金额*/,
    key: "baseLoanAmount",
    dataIndex: 'baseLoanAmount',
    ...columnsCommonFilterMoney
  },
  {
    title: messages('finance-7.key52')/*本币支付金额*/,
    key: "basePaymentAmount",
    dataIndex: 'basePaymentAmount',
    ...columnsCommonFilterMoney
  },
  {
    title: messages('finance-7.key53')/*本币借款余额*/,
    key: "baseStayWriteoffAmount",
    dataIndex: 'baseStayWriteoffAmount',
    ...columnsCommonFilterMoney
  },
  {
    title: messages('finance-7.key54')/*原币币种*/,
    key: "currencyCode",
    dataIndex: 'currencyCode',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key55')/*原币借款金额*/,
    key: "loanAmount",
    dataIndex: 'loanAmount',
    ...columnsCommonFilterMoney
  },
  {
    title: messages('finance-7.key56')/*原币借款余额*/,
    key: "stayWriteoffAmount",
    dataIndex: 'stayWriteoffAmount',
    ...columnsCommonFilterMoney
  },
  {
    title: messages('finance-7.key57')/*借款单号*/,
    key: "businessCode",
    dataIndex: 'businessCode',
    ...columnsCommon
  },
  {
    title: messages('common.document.name')/*单据名称*/,
    key: "formName",
    dataIndex: 'formName',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key58')/*单据状态*/,
    key: "statusDesc",
    dataIndex: 'statusDesc',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key59')/*付款日期*/,
    key: "paymentDate",
    dataIndex: 'paymentDate',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key60')/*付款时长*/,
    key: "paymentDays",
    dataIndex: 'paymentDays',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key61')/*计划还款日期*/,
    key: "planedRepaymentDate",
    dataIndex: 'planedRepaymentDate',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key62')/*实际还款日期*/,
    key: "repaymentDate",
    dataIndex: 'repaymentDate',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key63')/*还款时长*/,
    key: "repaymentDays",
    dataIndex: 'repaymentDays',
    ...columnsCommon
  },
];

export const LOAN_BALANCE_COLUMNS = [
  {
    title: messages('finance-7.key64')/*年*/,
    key: "year",
    dataIndex: 'year',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key65')/*月*/,
    key: "month",
    dataIndex: 'month',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key47')/*借款类型*/,
    key: "loanTypeName",
    dataIndex: 'loanTypeName',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key66')/*收方类型*/,
    key: "payeeTypeDesc",
    dataIndex: 'payeeTypeDesc',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key45')/*工号/编码*/,
    key: "payeeCode",
    dataIndex: 'payeeCode',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key67')/*收方名称*/,
    key: "payeeName",
    dataIndex: 'payeeName',
    ...columnsCommon
  },
  {
    title: messages('basic-5.key11')/*账套*/,
    key: "setOfBooksName",
    dataIndex: 'setOfBooksName',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key49')/*借款公司*/,
    key: "companyName",
    dataIndex: 'companyName',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key50')/*借款部门*/,
    key: "departmentName",
    dataIndex: 'departmentName',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key69')/*期初余额*/,
    key: "baseBegStayWriteoffBalance",
    dataIndex: 'baseBegStayWriteoffBalance',
    ...columnsCommonFilterMoney
  },
  {
    title: messages('finance-7.key70')/*本期增加*/,
    key: "baseLoanAmount",
    dataIndex: 'baseLoanAmount',
    ...columnsCommonFilterMoney
  },
  {
    title: messages('finance-7.key71')/*本期减少*/,
    key: "baseRepaymentAmount",
    dataIndex: 'baseRepaymentAmount',
    ...columnsCommonFilterMoney
  },
  {
    title: messages('finance-7.key72')/*期末余额*/,
    key: "baseEndStayWriteoffBalance",
    dataIndex: 'baseEndStayWriteoffBalance',
    ...columnsCommonFilterMoney
  },
];

export const PERSONNEL_DETAIL_COLUMNS = [
  {
    title: messages('common.expense.type')/*费用类型*/,
    key: "expenseType",
    dataIndex: 'expenseType',
    ...columnsCommon
  },
  {
    title: messages('common.happened.date')/*发生日期*/,
    key: "expenseCreatedDate",
    dataIndex: 'expenseCreatedDate',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key73')/*分摊部门*/,
    key: "departmentName",
    dataIndex: 'departmentName',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key74')/*本币分摊金额*/,
    key: "baseAmount",
    dataIndex: 'baseAmount',
    ...columnsCommonFilterMoney
  },
  {
    title: messages('finance-7.key54')/*原币币种*/,
    key: "currency",
    dataIndex: 'currency',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key75')/*原币分摊金额*/,
    key: "amount",
    dataIndex: 'amount',
    ...columnsCommonFilterMoney
  },
  {
    title: messages('finance-7.key76')/*分摊比率*/,
    key: "proportion",
    dataIndex: 'proportion',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key77')/*报销单号*/,
    key: "businessCode",
    dataIndex: 'businessCode',
    ...columnsCommon
  },
  {
    title: messages('common.document.name')/*单据名称*/,
    key: "formName",
    dataIndex: 'formName',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key78')/*报销单状态*/,
    key: "reimbStatusDesc",
    dataIndex: 'reimbStatusDesc',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key79')/*报销单提交人*/,
    key: "submittedByName",
    dataIndex: 'submittedByName',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key80')/*报销单提交时间*/,
    key: "submitettdDate",
    dataIndex: 'submitettdDate',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key81')/*关联申请单号*/,
    key: "appBusinessCode",
    dataIndex: 'appBusinessCode',
    ...columnsCommon
  },
];

export const USER_DETAIL_COLUMNS = [
  {
    title: messages('common.user.id')/*工号*/,
    key: "employeeId",
    dataIndex: 'employeeId',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key82')/*姓名*/,
    key: "ownerName",
    dataIndex: 'ownerName',
    ...columnsCommon
  },
  {
    title: messages('common.expense.type')/*费用类型*/,
    key: "expenseType",
    dataIndex: 'expenseType',
    ...columnsCommon
  },
  {
    title: messages('common.happened.date')/*发生日期*/,
    key: "expenseCreatedDate",
    dataIndex: 'expenseCreatedDate',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key83')/*费用标签*//*费用标签*/,
    key: "expenseLabels",
    dataIndex: 'expenseLabels',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key84')/*部门编码*/,
    key: "custDeptNumber",
    dataIndex: 'custDeptNumber',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key73')/*分摊部门*/,
    key: "departmentName",
    dataIndex: 'departmentName',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key85')/*分摊部门路径*/,
    key: "departmentPath",
    dataIndex: 'departmentPath',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key74')/*本币分摊金额*/,
    key: "baseAmount",
    dataIndex: 'baseAmount',
    ...columnsCommonFilterMoney
  },
  {
    title: messages('finance-7.key54')/*原币币种*/,
    key: "currency",
    dataIndex: 'currency',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key75')/*原币分摊金额*/,
    key: "amount",
    dataIndex: 'amount',
    ...columnsCommonFilterMoney
  },
  {
    title: messages('finance-7.key76')/*分摊比率*/,
    key: "proportion",
    dataIndex: 'proportion',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key77')/*报销单号*/,
    key: "businessCode",
    dataIndex: 'businessCode',
    ...columnsCommon
  },
  {
    title: messages('common.document.name')/*单据名称*/,
    key: "formName",
    dataIndex: 'formName',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key78')/*报销单状态*/,
    key: "reimbStatusDesc",
    dataIndex: 'reimbStatusDesc',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key86')/*提交报销日期*//*提交报销日期*/,
    key: "submitettdDate",
    dataIndex: 'submitettdDate',
    ...columnsCommon,
    width: 155
  },
  {
    title: messages('finance-7.key87')/*报销单审核通过日期*//*报销单审核通过日期*/,
    key: "auditApprovalDate",
    dataIndex: 'auditApprovalDate',
    ...columnsCommon,
    width: 155
  },
  {
    title: messages('finance-7.key59')/*付款日期*//*付款日期*/,
    key: "paymentDate",
    dataIndex: 'paymentDate',
    ...columnsCommon,
    width: 155
  },
];

export const COMPLIANCE_DETAIL_REPORT = [
  {
    title: messages('finance-7.key88')/*规则代码*/,
    key: "ruleCode",
    dataIndex: 'ruleCode',
    ...mergeColumnsCommon
  },
  {
    title: messages('finance-7.key89')/*规则名称*/,
    key: "ruleName",
    dataIndex: 'ruleName',
    ...mergeColumnsCommon
  },
  {
    title: messages('common.expense.type')/*费用类型*/,
    key: "ruleExpenseTypeNames",
    dataIndex: 'ruleExpenseTypeNames',
    ...mergeColumnsCommon
  },
  {
    title: messages('finance-7.key90')/*控制方式*/,
    key: "ruleControlType",
    dataIndex: 'ruleControlType',
    ...mergeColumnsCommon
  },
  {
    title: messages('finance-7.key91')/*控制力度*/,
    key: "ruleControlLevel",
    dataIndex: 'ruleControlLevel',
    ...mergeColumnsCommon
  },
  {
    title: messages('finance-7.key92')/*超标期间*/,
    key: "period",
    dataIndex: 'period',
    ...mergeColumnsCommon
  },
  {
    title: messages('finance-7.key93')/*检验币种*/,
    key: "currency",
    dataIndex: 'currency',
    ...mergeColumnsCommon
  },
  {
    title: messages('finance-7.key94')/*实报金额*/,
    key: "actualAmount",
    dataIndex: 'actualAmount',
    ...mergeColumnsCommonFilterMoney
  },
  {
    title: messages('finance-7.key95')/*标准*/,
    key: "standardAmount",
    dataIndex: 'standardAmount',
    ...mergeColumnsCommonFilterMoney
  },
  {
    title: messages('finance-7.key96')/*超标额*/,
    key: "excessAmount",
    dataIndex: 'excessAmount',
    ...mergeColumnsCommonFilterMoney
  },
  {
    title: messages('finance-7.key97')/*实报金额占比*/,
    key: "actualAmountPercentage",
    dataIndex: 'actualAmountPercentage',
    ...mergeColumnsCommon
  },
  {
    title: messages('finance-7.key98')/*本位币币种*/,
    key: "excessBaseCode",
    dataIndex: 'excessBaseCode',
    ...mergeColumnsCommon
  },
  {
    title: messages('finance-7.key99')/*本位币超标额*/,
    key: "excessBaseAmount",
    dataIndex: 'excessBaseAmount',
    ...mergeColumnsCommonFilterMoney
  },
  {
    title: messages('finance-7.key100')/*超标原因*/,
    key: "excessiveReason",
    dataIndex: 'excessiveReason',
    ...mergeColumnsCommon
  },
  {
    title: messages('finance-7.key101')/*报销单编号*/,
    key: "businessCode",
    dataIndex: 'businessCode',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key102')/*审核通过日期*//*审核通过日期*/,
    key: "auditApprovalDate",
    dataIndex: 'auditApprovalDate',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key103')/*费用发生日期*/,
    key: "invoiceCreateDate",
    dataIndex: 'invoiceCreateDate',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key104')/*费用币种*/,
    key: "invoiceCurrenty",
    dataIndex: 'invoiceCurrenty',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key105')/*费用原币金额*/,
    key: "invoiceAmount",
    dataIndex: 'invoiceAmount',
    ...columnsCommonFilterMoney
  },
  {
    title: messages('finance-7.key106')/*费用本位币金额*/,
    key: "invoiceBaseAmount",
    dataIndex: 'invoiceBaseAmount',
    ...columnsCommonFilterMoney
  },
  {
    title: messages('finance-7.key107')/*费用归属人*/,
    key: "expenseOwnerName",
    dataIndex: 'expenseOwnerName',
    ...columnsCommon
  },
  // {
  //   title: messages('finance-7.key336')/*费用归属人人员级别*/,
  //   key: "expenseOwnerRank",
  //   dataIndex: 'expenseOwnerRank',
  //   ...columnsCommon
  // },
  // {
  //   title: messages('finance-7.key337')/*费用归属人人员职务*/,
  //   key: "expenseOwnerDuty",
  //   dataIndex: 'expenseOwnerDuty',
  //   ...columnsCommon
  // },
  // {
  //   title: messages('finance-7.key338')/*费用归属人人员类型*/,
  //   key: "expenseOwnerType",
  //   dataIndex: 'expenseOwnerType',
  //   ...columnsCommon
  // },
  {
    title: messages('finance-7.key108')/*费用参与人*/,
    key: "partipicantNames",
    dataIndex: 'partipicantNames',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key109')/*费用归属人部门*/,
    key: "departmentName",
    dataIndex: 'departmentName',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key110')/*费用归属人部门路径*/,
    key: "departmentPath",
    dataIndex: 'departmentPath',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key111')/*费用归属人部门编码*/,
    key: "custDeptNumber",
    dataIndex: 'custDeptNumber',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key112')/*费用归属人公司*/,
    key: "companyName",
    dataIndex: 'companyName',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key113')/*费用归属人公司编码*/,
    key: "companyCode",
    dataIndex: 'companyCode',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key114')/*费用归属人法人*/,
    key: "entityName",
    dataIndex: 'entityName',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key115')/*费用归属人法人的纳税人别号*/,
    key: "taxpayerNumber",
    dataIndex: 'taxpayerNumber',
    ...columnsCommon
  }
];

export const CONTRACT_DETAIL_COLUMNS = [
  {
    title: messages('finance-7.key116')/*合同编号*/,
    key: "contractNumber",
    dataIndex: 'contractNumber',
    ...mergeColumnsCommon,
    width: 120
  },
  {
    title: messages('finance-7.key117')/*原合同编号*/,
    key: "originContractNumber",
    dataIndex: 'originContractNumber',
    ...mergeColumnsCommon
  },
  {
    title: messages('finance-7.key308')/*合同创建人*/,
    key: "contractCreatedName",
    dataIndex: 'contractCreatedName',
    ...mergeColumnsCommon
  },
  {
    title: messages('finance-7.key309')/*合同创建人工号*/,
    key: "contractCreatedEmployeeId",
    dataIndex: 'contractCreatedEmployeeId',
    ...mergeColumnsCommon
  },
  {
    title: messages('finance-7.key118')/*合同类型*/,
    key: "contractType",
    dataIndex: 'contractType',
    ...mergeColumnsCommon
  },
  {
    title: messages('finance-7.key119')/*合同名称*/,
    key: "contractName",
    dataIndex: 'contractName',
    ...mergeColumnsCommon,
    width: 120
  },
  {
    title: messages('finance-7.key120')/*合同公司*/,
    key: "companyName",
    dataIndex: 'companyName',
    ...mergeColumnsCommon
  },
  {
    title: messages('finance-7.key121')/*合同币种*/,
    key: "contractCurrency",
    dataIndex: 'contractCurrency',
    ...mergeColumnsCommon
  },
  {
    title: messages('finance-7.key122')/*合同总金额*/,
    key: "contractAmount",
    dataIndex: 'contractAmount',
    ...mergeColumnsCommonFilterMoney
  },
  {
    title: messages('finance-7.key123')/*合同已付款金额*/,
    key: "contractPaymentAmount",
    dataIndex: 'contractPaymentAmount',
    ...mergeColumnsCommonFilterMoney
  },
  {
    title: messages('finance-7.key124')/*合同未付款金额*/,
    key: "contractNonPaymentAmount",
    dataIndex: 'contractNonPaymentAmount',
    ...mergeColumnsCommonFilterMoney
  },
  {
    title: messages('finance-7.key125')/*合同已付款进度*/,
    key: "contractPaymentProgress",
    dataIndex: 'contractPaymentProgress',
    ...mergeColumnsCommon
  },
  {
    title: messages('finance-7.key126')/*签署日期*/,
    key: "signDate",
    dataIndex: 'signDate',
    ...mergeColumnsCommon
  },
  {
    title: messages('finance-7.key98')/*本位币币种*/,
    key: "baseCurrency",
    dataIndex: 'baseCurrency',
    ...mergeColumnsCommon
  },
  {
    title: messages('common.currency.rate')/*汇率*/,
    key: "currencyRate",
    dataIndex: 'currencyRate',
    ...mergeColumnsCommon
  },
  {
    title: messages('finance-7.key127')/*合同总金额折合本位币*/,
    key: "baseCurrencyAmount",
    dataIndex: 'baseCurrencyAmount',
    ...mergeColumnsCommonFilterMoney
  },
  {
    title: messages('finance-7.key128')/*合同已付款金额折合本位币*/,
    key: "paymentBaseCurrencyAmount",
    dataIndex: 'paymentBaseCurrencyAmount',
    ...mergeColumnsCommonFilterMoney
  },
  {
    title: messages('finance-7.key129')/*责任部门*/,
    key: "departmentName",
    dataIndex: 'departmentName',
    ...mergeColumnsCommon
  },
  {
    title: messages('finance-7.key130')/*责任人*/,
    key: "userName",
    dataIndex: 'userName',
    ...mergeColumnsCommon
  },
  {
    title: messages('finance-7.key131')/*有效期限从*/,
    key: "startDate",
    dataIndex: 'startDate',
    ...mergeColumnsCommon
  },
  {
    title: messages('finance-7.key132')/*有效期限至*/,
    key: "endDate",
    dataIndex: 'endDate',
    ...mergeColumnsCommon
  },
  {
    title: messages('finance-7.key133')/*合同方类型*/,
    key: "partnerCategory",
    dataIndex: 'partnerCategory',
    ...mergeColumnsCommon
  },
  {
    title: messages('finance-7.key134')/*合同方*/,
    key: "partnerName",
    dataIndex: 'partnerName',
    ...mergeColumnsCommon
  },
  {
    title: messages('finance-7.key135')/*合同状态*/,
    key: "contractStatusDesc",
    dataIndex: 'contractStatusDesc',
    ...mergeColumnsCommon
  },
  {
    title: messages('finance-7.key136')/*阶段名称*/,
    key: "stageName",
    dataIndex: 'stageName',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key44')/*收款方类型*/,
    key: "receiptPartnerCategory",
    dataIndex: 'receiptPartnerCategory',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key137')/*收款方*/,
    key: "receiptPartnerName",
    dataIndex: 'receiptPartnerName',
    ...columnsCommon
  },
  {
    title: messages('common.currency')/*币种*/,
    key: "currency",
    dataIndex: 'currency',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key138')/*计划付款金额*/,
    key: "amount",
    dataIndex: 'amount',
    ...columnsCommonFilterMoney
  },
  {
    title: messages('finance-7.key139')/*已付款金额*/,
    key: "stagePaidAmount",
    dataIndex: 'stagePaidAmount',
    ...columnsCommonFilterMoney
  },
  {
    title: messages('finance-7.key140')/*未付款金额*/,
    key: "stageNonPaidAmount",
    dataIndex: 'stageNonPaidAmount',
    ...columnsCommonFilterMoney
  },
  {
    title: messages('finance-7.key141')/*已付款进度*/,
    key: "stagePaidProgress",
    dataIndex: 'stagePaidProgress',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key142')/*计划付款日期*/,
    key: "dueDate",
    dataIndex: 'dueDate',
    ...columnsCommon
  },
  {
    title: messages('finance-7.key143')/*备注temp*/,
    key: "remark",
    dataIndex: 'remark',
    ...columnsCommon
  },
];

export const COMMON_REPORT_CONFIG = {
  isLoading: false,
  options: [],
  dataLength: 0,
  ref: null,
};
